package com.wei.czz.common.property;

import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2024-04-15 16:50:37
 * className: DownloadProperty
 * version: 1.0
 * description:
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "system.download")
@Validated
public class DownloadProperty extends BaseEntity {

    /**
     * 文件存储位置基本路径
     */
    @NotBlank(message = "文件存储位置基本路径不能为空")
    private String basePath;

    /**
     * 单次文件导出最大数据条数
     */
    @NotNull(message = "单次文件导出最大数据条数不能为空")
    private Integer maxSize;

}
